<%@page import="java.rmi.activation.ActivateFailedException"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib uri="http://www.rapid-framework.org.cn/rapid" prefix="rapid" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="mvc" %>
<%@ include file="nav.jsp"%>
<%@ include file="logo.jsp"%>
<%@ include file="item.jsp"%>
<%@ include file="footer.jsp" %>
<rapid:override name="contentContainer">
<div class="row">
    <div class="col-sm-12 col-lg-4 col-md-6 profileBox">
		<%
		
		UserInfo userInfo = null; 
		try{
			if(session != null){
				userInfo = (UserInfo)session.getAttribute("user");
				
				
			}
		}
		catch (Exception e){
			out.print("null");
		}
			%>
    	<div>
    		<div class="col-xs-5 col-md-5 col-lg-5 float-left">
	    		<a href='<%if(userInfo != null){out.print("/pethub/node/" + userInfo.getID());}else{out.print("null");}%>'><h3><%if(userInfo != null){out.print(userInfo.getName());}else{out.print("null");}%></h3></a>
	    	</div>
    	</div>
    	
    	<div class="clearfix"></div>
    	<div class="row center">
    		<a href=<%if(userInfo != null){out.print("/pethub/node/" + userInfo.getID());}else{out.print("null");}%>>
    			<div class="float-left center">
				 	<div class="imageBlock" style="border: 0px;box-shadow: 5px 5px 20px #888888;">
					    <img src=<%if(userInfo != null){out.print(userInfo.getImageUrl());}else{out.print("null");} %> style="width:300px;"/>
					</div>
				</div>
			</a>
    	</div>
    	<div class="clearfix"></div>
    	<div >
    		<h5>性别:<%if(userInfo != null){out.print(userInfo.getPetGender());}else{out.print("null");} %></h5>
    	</div>
    	<div >
    		<h5>年龄:<%if(userInfo != null){out.print(userInfo.getPetAge());}else{out.print("null");} %></h5>
    	</div>
    	<div>
    		<h5>年龄:<%if(userInfo != null){out.print(userInfo.getWeight() + userInfo.getWeightUnit());}else{out.print("null");} %></h5>
    	</div>
    	<div>
    		<h5>描述:<%if(userInfo != null){out.print(userInfo.getPetDesciption() );}else{out.print("null");} %></h5>
    	</div>
    	<div>
    		<h5>绝育:<%if(userInfo != null){out.print(userInfo.getAltered() );}else{out.print("null");} %></h5>
    	</div>
    	<div>
    		<h5>主人:<a href=<%if(userInfo != null){out.print("/pethub/pet-providers/" + userInfo.getID());}else{out.print("null");}%>>查看</a> </h5>
    	</div>
    	<div>
    		<h5>用药情况:<a href=<%if(userInfo != null){out.print("/pethub/pet-medical/" + userInfo.getID());}else{out.print("null");}%>>查看</a> </h5>
    	</div>
    	<div>
    		<h5>标签:<%if(userInfo != null){out.print(userInfo.getPetTag());}else{out.print("null");} %></h5>
    	</div>
    	<div>
    		<h5><a href='#'>关联到标签</a> </h5>
    	</div>
    	<div>
    		<h5><a href="/pethub/node/add/pet-record">查看更新动物信息</a> </h5>
    	</div>
    	<div>
    		<h5><a href=<%if(userInfo != null){out.print("/pethub/report-missing/" + userInfo.getID());}else{out.print("null");}%>>丢失申报</a> </h5>
    	</div>
    </div>
 </div>
</rapid:override>
<%@ include file="base.jsp" %>
<script type="text/javascript">
	
</script>